import { defineStore } from "pinia";
import { ref } from "vue";

export const useCityStore = defineStore('cityCode', () => {
    const cityInfo = ref()

    const saveCity = (cityInfo: any) => {
        cityInfo.value = cityInfo
    }

    const getCity = () => {
        return cityInfo.value
    }

    return {
        saveCity, getCity
    }
})